package com.woniuxy.woniuticket.ordermodule.utils;

import java.util.Random;

/**
 * Created by Wu xianbo on 2019/6/2
 * 该类用于手动生成唯一的订单号
 */
public class OrderNumberUtil {

    public static synchronized String getUniqueOrderNumber(){
        Random random = new Random();
        Integer number = random.nextInt(900) + 100;
        return System.currentTimeMillis() + String.valueOf(number);
    }
}
